package cqut.wys;

import cqut.wys.util.FileWatch;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Hello world!
 *
 * @author Administrator
 */
@SpringBootApplication
public class App  implements ApplicationRunner {

    @Autowired
    private FileWatch fileWatch;

    public static void main( String[] args )
    {
        SpringApplication.run(App.class,args);
        System.out.println( "Hello World!" );
    }

    @Override
    public void run(ApplicationArguments args) {
        fileWatch.start();
    }
}
